package com.sm.scorpio.ui.bean.http;

import android.os.Parcel;
import android.os.Parcelable;

import com.sm.scorpio.ui.bean.model.BaseBean;
import com.sm.scorpio.ui.bean.model.UserDataBean;

import java.io.Serializable;

/**
 * created by zhud on 2019/7/12
 */
public class UserDataHttpBean extends BaseBean implements Parcelable {
    public UserDataBean data;

    public UserDataHttpBean() {
    }

    protected UserDataHttpBean(Parcel in) {
        super(in);
        data = in.readParcelable(UserDataBean.class.getClassLoader());
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        super.writeToParcel(dest,flags);
        dest.writeParcelable(data, flags);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<UserDataHttpBean> CREATOR = new Creator<UserDataHttpBean>() {
        @Override
        public UserDataHttpBean createFromParcel(Parcel in) {
            return new UserDataHttpBean(in);
        }

        @Override
        public UserDataHttpBean[] newArray(int size) {
            return new UserDataHttpBean[size];
        }
    };
}
